package hied.cleaning;

import hied.Knowledge;

import java.io.File;

import org.simpleframework.xml.Serializer;
import org.simpleframework.xml.core.Persister;

public class CleaningApplication {

	public static void main(String[] args) throws Exception {
		Serializer serializer = new Persister();
		File source = new File("knowledge.xml");
		Knowledge knowlegde = serializer.read(Knowledge.class, source);

		Cleaner cleaner = new Cleaner(knowlegde);
		System.out.println(cleaner.clean("Klurpała Julia, doktor inżynier habilitowany"));
	}
}
